export function getTreeDataList(tree) {
  return tree.map((element) => {
    const { areaNo, areaName, children: prevChildren } = element;
    const children = getTreeDataList(prevChildren || []);
    return {
      value: areaNo,
      label: areaName,
      children
    };
  });
}
